<?

if($Db->connect()){

  if($_SESSION["modify_mode"] == "Y"){
  
  
  }else{
    
    
  }
  
  $lstStatus = array("A","N");
  
  echo  "<table border='1' class='dedeq'>\n".
        "<tr>\n".
        "<th> NO          </th>\n".
        "<th> LEVELMN     </th>\n".
        "<th> DESCP       </th>\n".
        "<th> PROG        </th>\n".
        "<th> STATUS      </th>\n".
        "</tr>\n";
  
  for($iRow = 0; $iRow < $_SESSION["init_num"]; $iRow++){
    
  	$_POST["progEnt"][$iRow] = ($_POST["progEnt"][$iRow] != '')? $_POST["progEnt"][$iRow]: " ";
  	
  	echo  "<tr>\n".
  	
  	      "<td> ".($iRow + 1)." </td>\n".
  	
  	      "<td> ".$GHtml->formInput("levelMnEnt[".$iRow."]",
  	                                $_POST["levelMnEnt"][$iRow],
  	                                $Misc->stdProperties().
  	                                $Misc->stdStyle(5))." </td>\n".
  	                                
          "<td> ".$GHtml->formInput("descpEnt[".$iRow."]",
                                    $_POST["descpEnt"][$iRow],
                                    $Misc->stdProperties())." </td>\n".
                                    
          "<td> ".$GHtml->formInput("progEnt[".$iRow."]",
                                    $_POST["progEnt"][$iRow],
                                    $Misc->stdProperties().
                                    $Misc->stdNumStyle100())." </td>\n".
                                     
          "<td> ".$GHtml->formDropDown("statusEnt[".$iRow."]",
	                                     $_POST["statusEnt"][$iRow],
	                                     $lstStatus,
	                                     $Misc->stdProperties())." </td>\n".
  	     
  	      "</tr>\n";
  }
  
  echo  "</table><br/>\n";
  
  echo  $GHtml->formInputButton( "Entry-data",
                                 "entry",
                                 "Entry-data",
                                 $stlButton).
  			$GHtml->formInputButton( "Add-row",
                                 "addrow",
                                 "Add-row",
                                 $stlButton).
        $GHtml->formInputButton( "Add-Tx",
                                 "addTx",
                                 "Add-Tx",
                                 $stlButton).
        $GHtml->formInputButton( "Drop-row",
                                 "droprow",
                                 "Drop-row",
                                 $stlButton).
      	"</form>\n ".
      	"</body>\n";
      	
  $Db->dc();
}else{
  
  $Misc->usrDie(_DB_CONN_ERROR);
}

?> 